package com.configure.elasticsearch;

/**
 * Created by cuich on 2018/2/13.
 */
public class Host {

    private String hostname;

    private int port;


    public Host() {
        super();
    }

    public Host(String hostname, int port) {
        this.hostname = hostname;
        this.port = port;
    }

    /**
     * Getter for property 'hostname'.
     *
     * @return Value for property 'hostname'.
     */
    public String getHostname() {
        return hostname;
    }

    /**
     * Setter for property 'hostname'.
     *
     * @param hostname Value to set for property 'hostname'.
     */
    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    /**
     * Getter for property 'port'.
     *
     * @return Value for property 'port'.
     */
    public int getPort() {
        return port;
    }

    /**
     * Setter for property 'port'.
     *
     * @param port Value to set for property 'port'.
     */
    public void setPort(int port) {
        this.port = port;
    }


}
